package com.serv.common;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.serv.common.model.Merchant;
import com.serv.common.model.Employee;
import com.serv.common.model.sys.DataControl;
import com.serv.common.model.sys.Module;
import com.serv.common.model.sys.Organization;
import com.serv.common.model.sys.Permission;
import com.serv.common.model.sys.Role;
import com.serv.common.model.sys.User;

public class MappingKit {

	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("sys_data_control", "id", DataControl.class);
		arp.addMapping("sys_module", "id", Module.class);
		arp.addMapping("sys_organization", "id", Organization.class);
		arp.addMapping("sys_permission", "id", Permission.class);
		arp.addMapping("sys_role", "id", Role.class);
		arp.addMapping("sys_user", "id", User.class);
		
		arp.addMapping("merchant",Merchant.class);
		arp.addMapping("merchant_employee",Employee.class);
	}
}

